<template>
  <div class="app-container well">
    <div class="export">
      <el-button>导出报表</el-button>
    </div>
    <div class="well_totals">
      <div class="well_total">
        <span class="well_total_num">32</span>
        <span class="well_total_factor">报警地热井</span>
      </div>
      <div class="well_total">
        <span class="well_total_num">32</span>
        <span class="well_total_factor">抽水井</span>
      </div>
      <div class="well_total">
        <span class="well_total_num">32</span>
        <span class="well_total_factor">回水井</span>
      </div>

    </div>
    <div class="well_charts">
      <div class="well_chart">
        <div class="chart_title">地热井类型所占比例</div>
        <div class="chart_1" id="well_chart1"></div>
      </div>
      <div class="well_chart">
        <div class="chart_title">报警地热井数量</div>
        <div class="chart_2" id="well_chart2"></div>
      </div>
      <div class="well_chart">
        <div class="chart_title">XXXXXX</div>
        <div class="chart_3" id="well_chart3"></div>
      </div>
      <div class="well_chart">
        <div class="chart_title">XXXXXX</div>
        <div class="chart_4" id="well_chart4"></div>
      </div>
    </div>
    <!-- <div class="well_details"></div> -->
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
export default {
  computed: {
    ...mapGetters([
      'sidebar',
      'avatar',
      'device'
    ])
  },
  created() {
    console.log(this.sidebar);
    console.log(this.avatar);
    console.log(this.device);
    console.log(this.$cache);
  }
};
</script>
<style lang="scss" scoped>
.well {
  .well_totals {
    display: flex;
    justify-content: space-around;
    justify-items: center;
    .export {
    }
    .well_total {
      display: flex;
      height: 81px;
      border: 1px solid rgb(133, 14, 14);
      flex-direction: column;
      width: 200px;
      color: #fff;
      text-align: center;
      justify-content: center;
      justify-items: center;
      font-size: 20px;
      border-radius: 10px;
      .well_total_num {
      }
      .well_total_factor {
      }
    }
    .well_total:nth-child(1) {
      background-color: #f59a23;
    }
    .well_total:nth-child(2) {
      background-color: #008080;
    }
    .well_total:nth-child(3) {
      background-color: #027db4;
    }
    
  }
  .well_charts {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-items: center;
    justify-content: center;
    .well_chart {
      margin-right: 30px;
      margin-top: 30px;
      flex: 0 0 45%;
      height: 320px;
      border: 2px dotted rgb(127, 193, 203);
      padding: 10px;
      .chart_title {
        /* border: 1px solid rgb(45, 219, 11); */
        text-align: center;
        font-size: 18px;
        margin-bottom: 10px;
      }
      .chart_1 {
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);

        height: 90%;
      }
      .chart_2 {
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
        height: 90%;
      }
      .chart_3 {
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
        height: 90%;
      }
      .chart_4 {
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
        height: 90%;
      }
    }
  }
  .well_details {
    border: 1px solid rgb(0, 255, 191);
    /* height: 250px; */
  }
}
</style>
